<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<%@ include file="/common/meta.jsp"%>
	<link rel="StyleSheet" href="${ctx}/resource/dtree/dtree.css" type="text/css" />
	<script type="text/javascript" src="${ctx}/resource/dtree/dtree.js"></script>
</head>

<body>

<div class="dtree">
	<p><a href="javascript: d.openAll();">展开</a> | <a href="javascript: d.closeAll();">收缩</a></p>
	<script type="text/javascript">
		<!--

		d = new dTree('d');

		d.add(0,-1,'Jerry ^_^');
		
		<s:iterator value="functionList" id="func">
			var url = null;
			<s:set name="url" value="#func.url"></s:set>
			<s:if test="#url!=ll&&#url!=''">
				url = '${ctx}<s:property value="url" />'
			</s:if>			
			d.add(<s:property value="id" />,<s:property value="parentId" />,'<s:property value="name" />',url);
		</s:iterator>
		
		d.config.target="mainRight";
		
		document.write(d);

		//-->
	</script>
</div>
</body>
</html>